export default {
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  dialogWidth: 600, 
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "租户ID",
      prop: "tenantId",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },    
    {
        label: "封面",
        prop: "url",
        type: 'upload', 
        propsHttp: {
            res: 'data',
            url: 'link',
        },
        listType: 'picture-img',
        span: 24,
        row: true,
        width:100,
        action: '/xrsk-resource/oss/endpoint/put-file',
       },     
    {
      label: "课卡名称",
      prop: "name",      
      type: "input",
      span: 24,
      row:true,
      rules: [{
        required: true,
        message: "课卡名称",
        trigger: "blur"
      }]
    },
    {
      label: "课卡描述",
      prop: "note",
      type: "input",
      span: 24,
      row:true,
    },
    
    // {
    //   label: "共享",
    //   prop: "shared",
    //   type: "input",
    // },收费标准： 
    {
      label: "课时数",
      prop: "classHour",
      type: "number",
      value: 0,
      span: 24,      
      row:true,
    },
    {
      label: "有效期天数",
      prop: "expireDays",
      type: "number",
      value:0,
      span: 24,
      row:true,
    },
    {
      label: "可请假次数",
      prop: "freeAskForLeaveCount",
      type: "number",
      value: 0,
      span: 24,
      row:true,
    },
    {
      label: "赠送课时",
      prop: "freeCount",
      type: "number",
      span: 24,
      value: 0,
      row:true,
    },
    {
      label: "价格",
      prop: "price",
      type: "number",
      value: 0,
      span: 24,
      row:true,
    },
    // {
    //   label: "是否可见",
    //   prop: "visible",
    //   type: "input",
    // },
    {
      label: "创建人",
      prop: "createUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建部门",
      prop: "createDept",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "状态",
      prop: "status",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "是否已删除",
      prop: "isDeleted",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
  ]
}
